package com.deer.wms.inventory.model.Inventory;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

/**
 * 库存导出模型
 * @author : wei
 * @since : 2022-09-28 09:50:23
 **/
@ContentRowHeight(20)
@HeadRowHeight(25)
@ColumnWidth(25)
@Data
public class InventoryExportModel {
    @ExcelProperty(value = "库位" ,index = 0)
    private String cellCode;

    @ExcelProperty(value = "物料编码" ,index = 1)
    private String itemCode;

    @ExcelProperty(value = "物料名称" ,index = 2)
    private String itemName;

    @ExcelProperty(value = "批次" ,index = 3)
    private String batchName;

    @ExcelProperty(value = "数量" ,index = 4)
    private Double quantity;

    @ExcelProperty(value = "追踪号" ,index = 5)
    private String boxCode;

    public InventoryExportModel(InventoryDto inventoryDto) {
        this.cellCode = inventoryDto.getCellCode();
        this.itemCode = inventoryDto.getItemCode();
        this.itemName = inventoryDto.getItemName();
        this.batchName = inventoryDto.getBatchName();
        this.quantity = inventoryDto.getQuantity();
        this.boxCode = inventoryDto.getBoxCode();
    }
}
